package cn.tedu.qxhouserent.passport.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
@TableName("role")
public class Role implements Serializable{

        @TableId(type = IdType.AUTO)
        private Long id;
        private String name;
        private String description;
        private Integer sort;
        @JsonFormat(pattern = "yyyy年MM月dd日 HH：mm：ss",timezone = "GMT+8")
        private LocalDateTime gmtCreate;
        @JsonFormat(pattern = "yyyy年MM月dd日 HH：mm：ss",timezone = "GMT+8")
        private LocalDateTime gmtModified;


}
